//
//  ST_ChatTopToastVIew.swift
//  btvideo
//
//  Created by mac on 2020/5/13.
//  Copyright © 2020 JarvanZhang. All rights reserved.
//

import UIKit
import SwifterSwift
import SnapKit
import SwiftyUserDefaults

class ST_ChatTopToastVIew: UIView {
    
    
    static let height = 29.cgFloat
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.addSubview(content_label)
        content_label.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    fileprivate lazy var content_label:UILabel = {
        let control = UILabel.init()
        control.text = "你们当前处于\(Defaults[.PandaWriteKindStr])聊天状态"
        control.textColor = Color.white
        control.backgroundColor = UIColor.init(hex: 0x42CEDA)
        control.textAlignment = .center
        control.font = UIFont.systemFont(ofSize: 12, weight: UIFont.Weight.regular)
        return control
    }()
}
